using UnityEngine;
using System.Collections;

public class Menu : MonoBehaviour {
	
	public GUISkin skin;
	public static Resize resize;
	public static Vector2 ns; // novo size que sera preenchido quando iniciar o menu
	
	void Start () 
	{
		resize = new Resize(Screen.width , Screen.height);
		ns.x = resize.ResizerX();
		ns.y = resize.ResizerY();
		skin.box.fontSize = (int)(12 * Menu.ns.y);
	}
	
	void OnGUI()
	{
		GUI.skin = skin;
		if(	GUI.Button(new Rect(Screen.width/2-60 ,Screen.height/2 , 250 * ns.x , 50 * ns.y ),"Iniciar o Jogo"))
		{
			Application.LoadLevel(1);
		}
	}
}
